jQuery.noConflict();
/*jQuery(document).ready(
  function(){
    jQuery("#adminForm").validate();
  }
);*/

function ajx_request(controller, action,  params, destination_id){
  
  jQuery.ajax({
    type: "GET",
    url: "index.php",
    data: "option=com_pbny&c="+controller+"&format=raw&task="+action+"&"+params,
    success: function(data) {
      jQuery("#"+destination_id).html(data);
    },
    error: function(request, textStatus, errorThrown){
      alert(request.statusText);
    },
    dataType: "html"
  });
}
  
function submitbutton(pressbutton) {
  if(pressbutton=='save'){
    if(jQuery("#adminForm").validate().form())
      submitform(pressbutton);
  }
  else
    submitform(pressbutton);
}
